package com.qf.service;

import com.github.pagehelper.PageInfo;
import com.qf.bean.Bargaininfo;

import java.util.List;


public interface BargainService {

    PageInfo<Bargaininfo> findAll(Integer page,Integer size,String charityname,Integer styleid,Integer checkstatus);

    Bargaininfo findOne(Integer id);

    Integer findCountByName(String bargainname);

    void addBargain(Bargaininfo bargaininfo);

    void updateBargain(Bargaininfo bargaininfo);

    Integer findCountById(String bargainname, Integer id);

    //假删除（修改状态）
    Integer deleteById(Integer id, Integer delete);

    //批量删除
    Integer deleteInIds(List<Integer> bargainidList);

    //批量导出
    List<Bargaininfo> findBargainByIds(Integer[] bargainid);

    //查询出明天到期的合同
    List<Integer> findDueIds();

    Bargaininfo findOneById(Integer id);
}
